//
//  CommonTools.swift
//  SinaWeiBo
//
//  Created by 毛强 on 16/1/11.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit

let SCREENW = UIScreen.mainScreen().bounds.size.width

let SCREENH = UIScreen.mainScreen().bounds.size.height

let MQSwitchRootViewControllerNotification = "MQSwitchRootViewControllerNotification"
let MQEoticonDidSelectedBtnNotification = "MQEoticonDidSelectedBtnNotification"
let MQDeleteButtonClickNotification = "MQDeleteButtonClickNotification"

// 随机颜色
func RandomColor() -> UIColor {
    
    return UIColor(red: CGFloat(arc4random() % 256) / 255, green: CGFloat(arc4random() % 256) / 255, blue: CGFloat(arc4random() % 256) / 255, alpha: 1)
}

//调试输出
func printfLog(message:Any, file:String = __FILE__, line:Int = __LINE__, function:String = __FUNCTION__){
    #if DEBUG
    print("\((file as NSString).lastPathComponent)[\(line)]:\(function).\(message)")
    #endif

}